package com.aaa.controller.api;

import com.aaa.entity.DictType;
import com.aaa.service.DictTypeDataService;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @BelongsPackage: com.aaa.controller.api
 * @Description: 1.0
 * @CreateTime: 2023-03-28  17:54
 * @Author: ql
 */
@RestController
@RequestMapping("/system/api/dictType/data")
public class ApiDictTypeDataController {

    @Autowired
    private DictTypeDataService typeDataService;
    //查询所有字典类型
    @GetMapping("selectAllDictType")
    public Result<List<DictType>> queryType(){
        return typeDataService.selectAllDictType();
    }

}
